

DATABASES = {
    'default': {
    'ENGINE': 'django.db.backends.mysql',
    'NAME': 'tracer',
    'USER': 'root',
    'PASSWORD': '123456',
    'HOST': 'localhost',
    'PORT': 3306,
    }
}

LANGUAGE_CODE = 'zh-hans'

# 腾讯云短信应用的app_id
TENCENT_SMS_APP_ID = 1400484858
# 腾讯云短信应用的app_key
TENCENT_SMS_APP_KEY = "dab2b390332e2d515dabead016b544e8"
# 腾讯云短信签名内容
TENCENT_SMS_SIGN = "障碍交流"
# 短信模板id
TENCENT_SMS_TEMPLATE = {
    'register': 871091,
    'login': 871090,
}


CACHES = {
    "default": {
        "BACKEND": "django_redis.cache.RedisCache",
        "LOCATION": "redis://192.168.27.1:6379", # 安装redis的主机的 IP 和 端口
        "OPTIONS": {
            "CLIENT_CLASS": "django_redis.client.DefaultClient",
            "CONNECTION_POOL_KWARGS": {
                "max_connections": 1000,
                "encoding": 'utf-8'
            },
            "PASSWORD": "wenwenwen" # redis密码
        }
    }
}